<%-- 
    Document   : view-rate-graph
    Created on : 31 Mei 11, 11:39:08
    Author     : Bayu
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>View Rate Data</title>
        <style type="text/css">

table, td
{
    border-color: #000;
    border-style: solid;
}

table
{
    border-width: 0 0 1px 1px;
    border-spacing: 0;
    border-collapse: collapse;
}

td
{
    margin: 0;
    padding: 4px;
    border-width: 1px 1px 0 0;
    background-color: #FFF;
}

</style>
    </head>
    <body>
        <h1 align="center">EXCHANGE RATE - PARIN</h1>

        <BR>

        <br>
        <form method="get">
        <table align="center" width="600">
            <tr>
                <td align="left">
                    Set Maximum Data &nbsp;:&nbsp; <input type="text" name="max" value="${max}">
                    &nbsp;<input type="submit" name="submit" value="View">
                </td>
            </tr>
        </table>
        </form>
                    
        <br>
        <table cellpadding="1" cellspacing="1"  width="600" align="center">
            <tr>
                <td><b>Note</b></td>
            </tr>
            <tr>
                <td>${note}</td>
            </tr>
        </table>
            <br>


       <table width="600" align="center">
           <tr align="center">
                <td width="10%">No</td>
                <td width="40">Remarks</td>
                <td width="25%">Rp / 1 USD</td>
                <td width="25%">Rp / 1 JPY</td>
               

            </tr>
            <c:set var="i" value="1"></c:set>
            <c:forEach items="${data}" var="data">
            <tr>
                <td>${i}</td>
                <td>${data.remarks}</td>
                <td align="right"><fmt:formatNumber type="number" maxFractionDigits="2" value="${data.rpusd}" /></td>
                <td align="right"><fmt:formatNumber type="number" maxFractionDigits="2" value="${data.rpjpy}" /></td>
                
            </tr>
            <c:set var="i" value="${i+1}"></c:set>
            </c:forEach>
        </table>
    </body>
</html>
